<?php
/**
 * Includes Path Info Class
 */
require_once dirname(dirname(dirname(__FILE__))) . '/cCodeInfo.php';
/**
 * Includes Updater History Base Class
 */
require_once PHPLog\cCodeInfo::C_STR_PATH2UPDATER . 'Classes/Repository/cRepository.php';

class cRepository_PHP_Log extends PHPUpdater\cRepository
{
	
	const C_STR_FILE_ATTRIB_BASE_CODE = "code";
	const C_STR_FILE_ATTRIB_BASE_SETUP = "setup";
	
	public function __construct($str_FileName)
	{
		parent::__construct($str_FileName);
		$this->load();
	}
	
	public function convert_Base($str_Base)
	{
		$str_Output = "";
		switch ($str_Base)
		{
			case self::C_STR_FILE_ATTRIB_BASE_CODE :
				$str_Output = PHPLog\cCodeInfo::C_STR_CODE."/Code/";
				break;
			case self::C_STR_FILE_ATTRIB_BASE_SETUP :
				$str_Output = PHPLog\cCodeInfo::C_STR_CODE."/Setup/";
				break;
			default :
				break;
		}
		return $str_Output;
	}
}
?>
